﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="IndividualCDDPopup.aspx.vb" Inherits="KYC_IndividualCDDPopup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../lib/css/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" media="all" href="../lib/css/jsDatePick.css" />
    <link href="../AMLO/StyleSheet.css" rel="stylesheet" type="text/css" />

    <link type="text/css" href="../lib/Javascript/jquery1_7/development-bundle/themes/ui-lightness/ui.all.css" rel="stylesheet" />
    <script type="text/javascript" src="../lib/Javascript/jquery1_7/development-bundle/jquery-1.3.2.js"></script>
    
	<script type="text/javascript" src="../lib/Javascript/jquery1_7/development-bundle/ui/ui.core.js"></script>
	<script type="text/javascript" src="../lib/Javascript/jquery1_7/development-bundle/ui/ui.tabs.js"></script>
    <script type="text/javascript" src="../lib/Javascript/jquery1_7/development-bundle/ui/ui.datepicker.js"></script>
  <link type="text/css" href="../lib/Javascript/jquery1_7/development-bundle/demos/demos.css" rel="stylesheet" />
  <script type="text/javascript" src="../lib/jsPopup/popupPost.js"></script>

  <script type="text/javascript" language="javascript">
      $(document).ready(function () {
          //Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
          
          $("input[id$=txtDApproveDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
              yearAddToDisplay: 543,
              dateFormat: 'dd/mm/yy 00:00:00',
              showOn: "button",
              buttonImage: "../img/calendar.gif",
              buttonImageOnly: true
          }));

          function EndRequestHandler(sender, args) {
              $("input[id$=txtDApproveDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
                  yearAddToDisplay: 543,
                  dateFormat: 'dd/mm/yy 00:00:00',
                  showOn: "button",
                  buttonImage: "../img/calendar.gif",
                  buttonImageOnly: true
              }));


          }

      });
  
  </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="control" >
                <tr class="thai5n" valign="top" >
                    <td rowspan="3" width="1%" valign="bottom"><img src="../img/tl.jpg" width="20" height="20"  alt=""/>
                    </td>
                    <td width="90%" align="right" valign="bottom" colspan="3">
                      
                      
                    </td>
                </tr>
                   <tr class="thai5n">
                        <td width="90%" align="left" valign="bottom" rowspan="2"><span class="thai13b">
                          <asp:Image ID="imgHead" runat="server" Height="30px" ImageUrl="~/img/ghb_.GIF" />
                            <asp:Label ID="lblForm" runat="server" CssClass="control" ForeColor="#999999" Height="25px"></asp:Label>
                                                                    </span>
                            <asp:Label ID="lblPage" runat="server" CssClass="control" ForeColor="#999999"  Height="25px" Text="ยืนยันการอนุมัติ"></asp:Label>
                        </td>
                        <td align="right" valign="bottom" style="text-align: right;" rowspan="2">
                            
                        </td>
                        <td align="right" valign="top" style="text-align: right">
                            &nbsp;</td>
                        <td align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="1%" align="right" valign="top"><img src="../img/pic2.jpg" alt=""/>
                      </td>
                      <td width="1%" align="right" style="background-image:url(../img/bg_r.jpg)" valign="top">
                      <img src="../img/tr.jpg" width="20" height="20" alt=""/></td>
                    </tr>
                    <tr>
                        <td style="background-image:url(../img/bg_l.jpg)">&nbsp;</td>
                        <td colspan="3" valign="top"> 
                            
                            
                                <table style="width: 100%;" class="control" border="0" cellpadding="0" cellspacing="0">
                                    <tr bgcolor="#FF9933">
                                        <td colspan="3" style="text-align: center">
                                            <strong>การอนุมัติ</strong>
                                        </td>
                                    </tr>
                                    <tr style="display:none">
                                        <td style="width: 4px" bgcolor="#FDF6DA">
                                            <asp:Image ID="Image7" runat="server" ImageUrl="~/img/icon/accept.png" Visible="False" />
                                        </td>
                                        <td style="width: 150px; text-align: right;" bgcolor="#FDF6DA">
                                            สถานะการอนุมัติ :
                                        </td>
                                        <td bgcolor="#FDF6DA">
                                            <asp:DropDownList ID="ddlApprove" runat="server" BackColor="#FFCCCC" CssClass="control"
                                                Width="200px" AutoPostBack="false">
                                                    <asp:ListItem Value="Y" Selected="True">อนุมัติ</asp:ListItem>
                                                    <asp:ListItem Value="N">ไม่อนุมัติ</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <%--<tr>
                                     <td style="width: 4px">
                                         <asp:Image ID="Image8" runat="server" ImageUrl="~/img/icon/accept.png" 
                                             Visible="False" />
                                     </td>
                                     <td style="width: 150px; text-align: right;">
                                         ผู้อนุมัติ :
                                     </td>
                                     <td>
                                         <asp:TextBox ID="txtApprove" runat="server" BackColor="#FFCCCC" 
                                             CssClass="control" Height="20px" Width="200px" Enabled="False"></asp:TextBox>
                                     </td>
                                 </tr>--%>
                                    <tr>
                                        <td style="width: 4px" bgcolor="#FDF6DA">
                                            <asp:Image ID="Image9" runat="server" ImageUrl="~/img/icon/accept.png" Visible="False" />
                                        </td>
                                        <td style="width: 150px; text-align: right;" bgcolor="#FDF6DA">
                                            ผู้อนุมัติ :
                                        </td>
                                        <td bgcolor="#FDF6DA">
                                            <asp:TextBox ID="txtApproveNo" runat="server" Width="200px" Height="20px" CssClass="control"
                                                BackColor="#FFCCCC"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#FDF6DA" style="width: 4px">
                                            &nbsp;
                                        </td>
                                        <td bgcolor="#FDF6DA" style="width: 150px; text-align: right;">
                                            รหัสผ่าน :
                                        </td>
                                        <td bgcolor="#FDF6DA">
                                            <asp:TextBox ID="txtApprovePassword" runat="server" BackColor="#FFCCCC" CssClass="control"
                                                Height="20px" TextMode="Password" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr style="display:none">
                                        <td style="width: 4px">
                                            <asp:Image ID="Image10" runat="server" ImageUrl="~/img/icon/accept.png" Visible="False" />
                                        </td>
                                        <td style="width: 150px; text-align: right;">
                                            วันที่อนุมัติ :
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDApproveDate" runat="server" Height="20px" CssClass="control" AutoPostBack="false"
                                                BackColor="#FFCCCC" onkeypress="return false"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td></td>
                                        <td colspan="1">
                                            <asp:Button ID="btnConfirm" runat="server" Text="ยืนยัน" /> &nbsp
                                            <asp:Button ID="btnClose" runat="server" Text="ปิด" OnClientClick="closeWindow()" />
                                        </td>
                                        
                                    </tr>
                                </table>
                            





                        </td>
                        <td align="right" style="background-image:url(../img/bg_r.jpg)">&nbsp;</td>
                    </tr>
                    <tr>
                      <td style="background-image:url(../index_files/bg_b.jpg)"><img src="../img/bl.jpg" width="20" height="20"  alt=""/></td>
                      <td colspan="3" style="background-image:url(../img/bg_b.jpg)">&nbsp;</td>
                      <td align="right" valign="top"><img src="../img/br.jpg" width="20" height="20"  alt=""/></td>
                    </tr>
                     
    </table>
    <script language="javascript" type="text/javascript">
    
        function closeWindow() {
            this.close();
        }

        function closeWindowComplete() {
            alert('ยืนยันสำเร็จ');
            closeWindow();
        }

        function closedWindowFail() {
            alert('ผู้อนุมัติ/รหัสผ่าน ไม่ถูกต้อง');           
        }
    </script>
    </form>
</body>
</html>
